package com.bank.basic.service;

import com.bank.model.entity.Deposit;
import com.bank.model.vo.deposit.DepositAddVo;
import com.bank.model.vo.deposit.DepositHistoryVo;
import com.bank.model.vo.deposit.DepositVo;
import com.bank.model.vo.deposit.CashDepositVo;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/3/28 11:34
 */
public interface DepositService {
    void cashDeposit(CashDepositVo cashDepositVo);
    List<DepositVo> queryList(Long userId);
    List<DepositHistoryVo> queryDepositHistoryVos();
    List<Deposit> queryAll();
    List<Deposit> queryAccount(String accountId);
    List<Deposit> queryUser(Long userId);
    Double getAccountMoney(String accountId);
    Double getUserMoney(Long userId);
    void addDeposit(DepositAddVo depositAddVo,HttpServletRequest httpServletRequest);
    void calculateInterestRate();
    void delDeposit(@RequestParam Long depositId);
}
